package com.molichuxing.service.impl;


import com.molichuxing.service.InsuranceJobService;
import com.molichuxing.services.infrastructure.service.InsuranceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("insuranceJobService")
public class InsuranceJobServiceImpl implements InsuranceJobService {

    private static final Logger logger = LoggerFactory.getLogger(InsuranceJobServiceImpl.class);

    @Resource
    InsuranceService insuranceService;

    @Override
    public Boolean createInsuranceImgByPdf() {
        logger.info("保单 >> 创建保单图片");
        try {
            insuranceService.createInsuranceImgByPdf();
            return true;
        } catch (Exception e) {
            logger.error("创建保单图片异常：", e);
            return false;
        }
    }
}
